package com.shenxuchen.crm.mapper;

import com.shenxuchen.crm.pojo.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
public interface ActivityMapper {
    @Select("select * from tbl_marketing_activities")
    List<Activity> getAll();

    void save(Activity activity);

    @Select("select * from tbl_marketing_activities where id=#{id}")
    Activity getById(String id);

    void edit(Activity activity);

    void delete(String[] ids);

    void saveList(List<Activity> activities);
}
